package com.zyf.cloud.services.userservice.entity;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;

import java.util.Date;

@Data
//映射Elasticsearch中的索引和文档类型
@Document(indexName = "test", type = "doc")
public class EsBlog {

    @Id
    private String id;

    private String title;

    private Date createTime;

    private String content;


}
